from math import factorial

if __name__ == "__main__":
    a = int(input("第一个整数："))
    b = int(input("第二个整数："))
    print("两个整数的阶乘之和为：%d"%(factorial(a) + factorial(b)))